<?php
namespace gnomephp\message;

abstract class MessageItem{
	public $type;
	public $message;
	public function __construct($type, $message){
		$this->type = $type;
		$this->message = $message;
	}
	
	public function getMessage(){
		return $this->message;
	}
	
	public function getType(){
		return $this->type;
	}
	
	public function __toString(){
		return $this->message;
	}
}